#include "blur.h"

Blur::Blur(){
    k_rows=3;
    k_cols=3;
    int i;
    kernel=new double[k_rows*k_cols];
    for(i=0;i<k_rows*k_cols;i++)
        kernel[i]=1.0/9;
}

Blur::Blur(int cols, int rows){
    k_rows=rows;
    k_cols=cols;
    int i;
    kernel=new double[k_rows*k_cols];
    for(i=0;i<k_rows*k_cols;i++)
        kernel[i]=1.0/(rows*cols);
}

Blur::~Blur(){
    delete [] kernel;
}

